
	
/****** Object:  Stored Procedure [sapro].SanPhamUpdate    Script Date: Thursday, March 18, 2010 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spSanPhamUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [sapro].[spSanPhamUpdate]
GO
			
	
	

	
/******************************************************************************
**		File: 
**		Name: [sapro].spSanPhamUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 3/18/2010 5:04:46 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [sapro].spSanPhamUpdate
	@MaSanPham nvarchar(50), 
	@TenSanPham nvarchar(150), 
	@SoDiem int, 
	@NoiDung nvarchar(255), 
	@ChiTiet nvarchar, 
	@DanhMuc int, 
	@AnhDaiDien nvarchar(150), 
	@AnhLon nvarchar(150) 
AS

UPDATE [sapro].[SanPham] SET
	[TenSanPham] = @TenSanPham,
	[SoDiem] = @SoDiem,
	[NoiDung] = @NoiDung,
	[ChiTiet] = @ChiTiet,
	[DanhMuc] = @DanhMuc,
	[AnhDaiDien] = @AnhDaiDien,
	[AnhLon] = @AnhLon
WHERE
	[MaSanPham] = @MaSanPham

GO

